﻿<views:MvxWindowsPage
    x:Class="Sidvall.UI.Uwp.Test.Views.Page1View"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:views="using:MvvmCross.Uwp.Views"
    xmlns:vms="using:Sidvall.UI.Uwp.Test.ViewModels"
    xmlns:controls2="using:Sidvall.UI.Uwp.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid d:DataContext="{d:DesignInstance vms:Page1ViewModel, IsDesignTimeCreatable=True}" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="48"></RowDefinition>
            <RowDefinition></RowDefinition>
        </Grid.RowDefinitions>
        
        <Border Grid.Row="0">
            <TextBlock Margin="50,0,0,0" FontSize="32">Page 1</TextBlock>
        </Border>

        <StackPanel Grid.Row="1" Orientation="Horizontal">
            <Button Command="{Binding GoPageCommand}">Page 2</Button>
            <Button x:Name="dialogButton1" Click="dialogButton1_Click" Margin="20,0,0,0">Dialog 1</Button>
            <Button x:Name="dialogButton2" Click="dialogButton2_Click" Margin="4,0,0,0">Dialog 2</Button>
            <Button x:Name="dialogButton3" Click="dialogButton3_Click" Margin="4,0,0,0">Dialog 3</Button>
            <Button x:Name="testButton1" Click="testButton1_Click" Margin="20,0,0,0">Test 1</Button>
        </StackPanel>

        <StackPanel Grid.Row="2">
            <controls2:RadioButtonListControl Margin="3" ItemMargin="0,0,0,0" ItemsSource="{Binding BooleanTypes}" DisplayMemberPath="Key" SelectedValuePath="Value" 
                                              Orientation="Vertical" GroupName="TestGroup1" SelectedValue="{Binding TestValue1, Mode=TwoWay}" />
        </StackPanel>
    </Grid>
</views:MvxWindowsPage>
